<?
// UltraMemo Project - Snippets.php  -- misc code snippets
// 11/16/09 initial creation - Scott Szretter

//generic routine to ouput contents of google feed
//function printFeed($feed)
//{
//$i = 0;
//    foreach($feed->entries as $entry) {
//        if ($entry instanceof Zend_Gdata_Spreadsheets_CellEntry) {
//            print $entry->title->text .' '. $entry->content->text . "<br>";
//        } else if ($entry instanceof Zend_Gdata_Spreadsheets_ListEntry) {
//            print $i .' '. $entry->title->text .' | '. $entry->content->text . "<br>";
//        } else {
//            print $i .' '. $entry->title->text . " " .$entry->id->text . "<br>";
//        }
//        $i++;
//    }
//}


/*    get list of spreadsheets and feed urls
$feed = $gdClient->getSpreadsheetFeed();
printFeed($feed);
*/

/* //get list of worksheets in the spreadsheet
$query = new Zend_Gdata_Spreadsheets_DocumentQuery();
$query->setSpreadsheetKey($sheetKey);
$feed = $gdClient->getWorksheetFeed($query);
printFeed($feed);
*/


?>